﻿using System;
using System.Globalization;
using System.Windows.Data;

namespace ImageProcessor.Tim.Converters
{
    public class MultiplyConverter : IValueConverter
    {
        public double Factor { get; set; }

        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            var val = (double) value;
            return Factor*val;
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}